<br>
<?php 

require_once("bd_utils.php");
$obj_utils=new bd_utils();
$obj_utils->connect();
$tabRunners=$obj_utils->getAllRunners();

$obj_utils->close();
	
	
	if($tabRunners!=0){
	?>
	<table class="principale">
		<tr><th colspan="3"><h2>Inscriptions Précédentes</h2></th></tr>
		<tr><th>Né</th><th>Nom</th><th>Prénom</th><th>Dossard</th><th>Distance</th><th>Club</th></tr>
	<?php 
	$j=1;
	for($i=0;$i<sizeof($tabRunners);$i++){?>
		
		<tr class="list">
			<td class="listing"><?php 
			if("MONHONVAL"==$tabRunners[$i]['nom'] || $j>1){
				echo($j);
				$j++;				
			}else{
				echo($i+1); 
			}
			
			
			?></td>
			<td class="listing"><?php echo($tabRunners[$i]['nom']); ?></td>
			<td class="listing"><?php echo($tabRunners[$i]['prenom']); ?></td>
			<td class="listing"><?php echo($tabRunners[$i]['dossard']); ?></td>
			<td class="listing"><?php echo ($tabRunners[$i]['distance']); ?></td>
			<td class="listing"><?php 
				
				$CL=$tabRunners[$i]['club'];	
				if($tabRunners[$i]['club']=='null'){
					$CL="";
				} 
				echo ($CL);

				?>



				</td>
		</tr>
	
	<?php } ?>
	</table>
<?php
	
	}
	include("footer.php");
	

?>
